3.12.42 \(\int (a+b x)^2 (c+d x)^2 \, dx\)

Optimal. Leaf size=65 \[ \frac {d (a+b x)^4 (b c-a d)}{2 b^3}+\frac {(a+b x)^3 (b c-a d)^2}{3 b^3}+\frac {d^2 (a+b x)^5}{5 b^3} \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {43} \begin {gather*} \frac {d (a+b x)^4 (b c-a d)}{2 b^3}+\frac {(a+b x)^3 (b c-a d)^2}{3 b^3}+\frac {d^2 (a+b x)^5}{5 b^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^2*(c + d*x)^2,x]

[Out]

((b*c - a*d)^2*(a + b*x)^3)/(3*b^3) + (d*(b*c - a*d)*(a + b*x)^4)/(2*b^3) + (d^2*(a + b*x)^5)/(5*b^3)

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin {align*} \int (a+b x)^2 (c+d x)^2 \, dx &=\int \left (\frac {(b c-a d)^2 (a+b x)^2}{b^2}+\frac {2 d (b c-a d) (a+b x)^3}{b^2}+\frac {d^2 (a+b x)^4}{b^2}\right ) \, dx\\ &=\frac {(b c-a d)^2 (a+b x)^3}{3 b^3}+\frac {d (b c-a d) (a+b x)^4}{2 b^3}+\frac {d^2 (a+b x)^5}{5 b^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 79, normalized size = 1.22 \begin {gather*} \frac {1}{3} x^3 \left (a^2 d^2+4 a b c d+b^2 c^2\right )+a^2 c^2 x+\frac {1}{2} b d x^4 (a d+b c)+a c x^2 (a d+b c)+\frac {1}{5} b^2 d^2 x^5 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^2*(c + d*x)^2,x]

[Out]

a^2*c^2*x + a*c*(b*c + a*d)*x^2 + ((b^2*c^2 + 4*a*b*c*d + a^2*d^2)*x^3)/3 + (b*d*(b*c + a*d)*x^4)/2 + (b^2*d^2
*x^5)/5

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (a+b x)^2 (c+d x)^2 \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a + b*x)^2*(c + d*x)^2,x]

[Out]

IntegrateAlgebraic[(a + b*x)^2*(c + d*x)^2, x]

________________________________________________________________________________________

fricas [A]  time = 1.33, size = 89, normalized size = 1.37 \begin {gather*} \frac {1}{5} x^{5} d^{2} b^{2} + \frac {1}{2} x^{4} d c b^{2} + \frac {1}{2} x^{4} d^{2} b a + \frac {1}{3} x^{3} c^{2} b^{2} + \frac {4}{3} x^{3} d c b a + \frac {1}{3} x^{3} d^{2} a^{2} + x^{2} c^{2} b a + x^{2} d c a^{2} + x c^{2} a^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*(d*x+c)^2,x, algorithm="fricas")

[Out]

1/5*x^5*d^2*b^2 + 1/2*x^4*d*c*b^2 + 1/2*x^4*d^2*b*a + 1/3*x^3*c^2*b^2 + 4/3*x^3*d*c*b*a + 1/3*x^3*d^2*a^2 + x^
2*c^2*b*a + x^2*d*c*a^2 + x*c^2*a^2

________________________________________________________________________________________

giac [A]  time = 0.80, size = 89, normalized size = 1.37 \begin {gather*} \frac {1}{5} \, b^{2} d^{2} x^{5} + \frac {1}{2} \, b^{2} c d x^{4} + \frac {1}{2} \, a b d^{2} x^{4} + \frac {1}{3} \, b^{2} c^{2} x^{3} + \frac {4}{3} \, a b c d x^{3} + \frac {1}{3} \, a^{2} d^{2} x^{3} + a b c^{2} x^{2} + a^{2} c d x^{2} + a^{2} c^{2} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*(d*x+c)^2,x, algorithm="giac")

[Out]

1/5*b^2*d^2*x^5 + 1/2*b^2*c*d*x^4 + 1/2*a*b*d^2*x^4 + 1/3*b^2*c^2*x^3 + 4/3*a*b*c*d*x^3 + 1/3*a^2*d^2*x^3 + a*
b*c^2*x^2 + a^2*c*d*x^2 + a^2*c^2*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 87, normalized size = 1.34 \begin {gather*} \frac {b^{2} d^{2} x^{5}}{5}+a^{2} c^{2} x +\frac {\left (2 a b \,d^{2}+2 b^{2} c d \right ) x^{4}}{4}+\frac {\left (a^{2} d^{2}+4 a b c d +b^{2} c^{2}\right ) x^{3}}{3}+\frac {\left (2 a^{2} c d +2 a b \,c^{2}\right ) x^{2}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^2*(d*x+c)^2,x)

[Out]

1/5*b^2*d^2*x^5+1/4*(2*a*b*d^2+2*b^2*c*d)*x^4+1/3*(a^2*d^2+4*a*b*c*d+b^2*c^2)*x^3+1/2*(2*a^2*c*d+2*a*b*c^2)*x^
2+a^2*c^2*x

________________________________________________________________________________________

maxima [A]  time = 1.34, size = 81, normalized size = 1.25 \begin {gather*} \frac {1}{5} \, b^{2} d^{2} x^{5} + a^{2} c^{2} x + \frac {1}{2} \, {\left (b^{2} c d + a b d^{2}\right )} x^{4} + \frac {1}{3} \, {\left (b^{2} c^{2} + 4 \, a b c d + a^{2} d^{2}\right )} x^{3} + {\left (a b c^{2} + a^{2} c d\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^2*(d*x+c)^2,x, algorithm="maxima")

[Out]

1/5*b^2*d^2*x^5 + a^2*c^2*x + 1/2*(b^2*c*d + a*b*d^2)*x^4 + 1/3*(b^2*c^2 + 4*a*b*c*d + a^2*d^2)*x^3 + (a*b*c^2
 + a^2*c*d)*x^2

________________________________________________________________________________________

mupad [B]  time = 0.17, size = 74, normalized size = 1.14 \begin {gather*} x^3\,\left (\frac {a^2\,d^2}{3}+\frac {4\,a\,b\,c\,d}{3}+\frac {b^2\,c^2}{3}\right )+a^2\,c^2\,x+\frac {b^2\,d^2\,x^5}{5}+a\,c\,x^2\,\left (a\,d+b\,c\right )+\frac {b\,d\,x^4\,\left (a\,d+b\,c\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)^2*(c + d*x)^2,x)

[Out]

x^3*((a^2*d^2)/3 + (b^2*c^2)/3 + (4*a*b*c*d)/3) + a^2*c^2*x + (b^2*d^2*x^5)/5 + a*c*x^2*(a*d + b*c) + (b*d*x^4
*(a*d + b*c))/2

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 87, normalized size = 1.34 \begin {gather*} a^{2} c^{2} x + \frac {b^{2} d^{2} x^{5}}{5} + x^{4} \left (\frac {a b d^{2}}{2} + \frac {b^{2} c d}{2}\right ) + x^{3} \left (\frac {a^{2} d^{2}}{3} + \frac {4 a b c d}{3} + \frac {b^{2} c^{2}}{3}\right ) + x^{2} \left (a^{2} c d + a b c^{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**2*(d*x+c)**2,x)

[Out]

a**2*c**2*x + b**2*d**2*x**5/5 + x**4*(a*b*d**2/2 + b**2*c*d/2) + x**3*(a**2*d**2/3 + 4*a*b*c*d/3 + b**2*c**2/
3) + x**2*(a**2*c*d + a*b*c**2)

________________________________________________________________________________________